.projects-page {
  margin-left: 200px; /* 为侧边栏留出空间 */
  padding: 70px 20px 20px; /* 顶部留出足够空间给导航栏 */
  background-color: #f8f9fa;
  min-height: 100vh;
  width: calc(100% - 200px); /* 确保宽度正确 */
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-item {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.search-item label {
  margin-right: 8px;
  font-size: 14px;
  color: #333;
}

.search-item input, .search-item select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
}

.project-group-select {
  background-color: white;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  appearance: auto;
}

.search-actions {
  display: flex;
  margin-right: 20px;
}

.btn-search, .btn-reset {
  padding: 6px 15px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
}

.btn-search {
  background-color: #1890ff;
  color: white;
}

.btn-reset {
  background-color: #f0f0f0;
  color: #333;
}

.action-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.btn-create, .create-button, .btn-primary {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.btn-create:hover, .create-button:hover, .btn-primary:hover {
  background-color: #40a9ff;
}

.plus-icon {
  margin-right: 5px;
  font-weight: bold;
}

.projects-table {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #f5f5f5;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #e8e8e8;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}

tr:hover {
  background-color: #f5f5f5;
}

.version-cell {
  color: #1890ff;
}

.version-link {
  color: #1890ff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.version-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.actions-cell {
  display: flex;
  align-items: center;
}

.action-link {
  color: #1890ff;
  text-decoration: none;
}

.action-separator {
  margin: 0 8px;
  color: #ddd;
}

/* 表单容器样式 */
.form-container {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
  max-width: 800px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.submit-button, .cancel-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.submit-button {
  background-color: #1890ff;
  color: white;
}

.submit-button:hover {
  background-color: #40a9ff;
}

.submit-button:disabled {
  background-color: #b3d9ff;
  cursor: not-allowed;
}

.cancel-button {
  background-color: #f0f0f0;
  color: #333;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

.cancel-button:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* 页面标题样式 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 500;
}

.btn-primary {
  padding: 6px 12px;
  font-size: 13px;
  width: auto;
  white-space: nowrap;
}

.plus-icon {
  margin-right: 5px;
  font-weight: bold;
}

/* 分页样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.pagination button {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pagination button:hover:not(:disabled) {
  background-color: #e0e0e0;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  margin: 0 10px;
  color: #666;
  font-size: 14px;
}

/* 编辑和删除按钮样式 */
.action-button {
  padding: 5px 10px;
  margin-right: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.actions-cell {
  white-space: nowrap;
}

.action-button {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  padding: 0 5px;
  font-size: 13px;
  transition: color 0.3s;
  text-decoration: none;
}

.action-button:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.action-separator {
  color: #d9d9d9;
  margin: 0 4px;
}

.action-link {
  color: #1890ff;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.action-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}
